package com.wy.framework.actions.user;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.Action;
import com.wy.framework.actions.AbstractBaseAction;
import com.wy.framework.exceptions.ServiceException;
import com.wy.framework.services.user.UserManageService;

/**
 * 项目名称：openportal
 * 类名称：ResetPwdAction
 * 类描述：重置密码控制器
 * 创建人：张旭星
 * 创建时间：2015-12-28 下午8:07:45
 * 修改人：张旭星
 * 修改时间：2015-12-28 下午8:07:45
 * 版本信息：@version 1.0
 * Copyright (c) 2015万雍科技（上海）有限公司-版权所有  
 * 修改备注：
 * @version 
 */
public class ResetPwdAction extends AbstractBaseAction {
	private static Logger logger = LoggerFactory
			.getLogger(ResetPwdAction.class);

	@Autowired
	private UserManageService userManageService;

	private String userId;
	
	private String jsonRes;

	@Override
	public String execute() throws ServiceException{
		logger.info("重置用户密码:{}", userId);
		jsonRes=userManageService.updateResetPwd(userId);
		return Action.SUCCESS;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getJsonRes() {
		return jsonRes;
	}

	public void setJsonRes(String jsonRes) {
		this.jsonRes = jsonRes;
	}
	
	
}
